﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KeyboardBubble.Common
{
    public static class Extend
    {
        /// <summary>
        /// 首字母大写
        /// </summary>
        /// <param name="value"></param>
        /// <returns></returns>
        public static string FirstUpper(this string value)
        {
            if (string.IsNullOrWhiteSpace(value)) return "";
            char firstLetter = value[0];
            return firstLetter.ToString().ToUpper() + value.Substring(1);
        }
    }
}
